import {get,post} from '../http';

export function IdType() {
	return {
		/**
		 * 增加证件类型
		 * @param {*} params 
		 * @returns 
		 */
		addIdType: (params:any) => {
			return post({
				url: '/hr/id-type/addIdType',
				data: params,
			});
		},
		/**
		 * 修改证件类型
		 * @param {*} params 
		 * @returns 
		 */
		updateIdType: (params:any) => {
			return post({
				url: '/hr/id-type/updateIdType',

				data: params,
			});
		},
		/**
		 * 获取生效的证件类型
		 * @returns 
		 */
		getAllActiveIdType: () => {
			return get({
				url: '/hr/id-type/getAllActiveIdType',
				method: 'get',
			});
		},
		/**
		 * 获取所有证件类型
		 * @param {*} params 
		 * @returns 
		 */
		getIdTypeList: (params:any) => {
			return post({
				url: '/hr/id-type/getIdTypeList',
				data: params,
			});
		}
	}
}


export class AccidentCategory {

		constructor(){
			
		}
		/**
		 * 增加事故类别
		 * @param {*} params 
		 * @returns 
		 */
		addAccidentCategory = (params:any) => {
			return post({
				url: '/hr/accident-category/addAccidentCategory',
				method: 'POST',
				data: params,
			});
		}
		/**
		 * 修改事故类别
		 * @param {*} params 
		 * @returns 
		 */
		updateAccidentCategory= (params:any) => {
			return post({
				url: '/hr/accident-category/updateAccidentCategory',

				data: params,
			});
		}
		/**
		 * 获取生效的事故类别
		 * @returns 
		 */
		getAllActiveAccidentCategory= () => {
			return get({
				url: '/hr/accident-category/getAllActiveAccidentCategory',

			});
		}
		/**
		 * 获取所有事故类别
		 * @param {*} params 
		 * @returns 
		 */
		getAccidentCategoryList =(params:any) => {
			return post({
				url: '/hr/accident-category/getAccidentCategoryList',
				data: params,
			});
		}
	
}

export function CertificateStatus() {
	return {
		/**
		 * 增加证件状态
		 * @param {*} params 
		 * @returns 
		 */
		addCertificateStatu: (params:any) => {
			return post({
				url: '/hr/certificate-status/addCertificateStatus',
				data: params,
			});
		},
		/**
		 * 修改证件状态
		 * @param {*} params 
		 * @returns 
		 */
		updateCertificateStatus: (params:any) => {
			return post({
				url: '/hr/certificate-status/updateCertificateStatus',
				data: params,
			});
		},
		/**
		 * 获取生效的证件状态
		 * @returns 
		 */
		getAllActiveCertificateStatus: () => {
			return get({
				url: '/hr/certificate-status/getAllActiveCertificateStatus',
			});
		},
		/**
		 * 获取所有证件状态
		 * @param {*} params 
		 * @returns 
		 */
		getCertificateStatusList: (params:any) => {
			return post({
				url: '/hr/certificate-status/getCertificateStatusList',
				data: params,
			});
		}
	}
}

export function ChangeType() {
	return {
		/**
		 * 增加异动类型
		 * @param {*} params 
		 * @returns 
		 */
		addChangeType: (params:any) => {
			return post({
				url: '/hr/change-type/addChangeType',
				data: params,
			});
		},
		/**
		 * 修改异动类型
		 * @param {*} params 
		 * @returns 
		 */
		updateChangeType: (params:any) => {
			return post({
				url: '/hr/change-type/updateChangeType',
				data: params,
			});
		},
		/**
		 * 获取生效的异动类型
		 * @returns 
		 */
		getAllActiveChangeType: () => {
			return get({
				url: '/hr/change-type/getAllActiveChangeType',
			});
		},
		/**
		 * 获取所有异动类型
		 * @param {*} params 
		 * @returns 
		 */
		getChangeTypeList: (params:any) => {
			return post({
				url: '/hr/change-type/getChangeTypeList',
				data: params,
			});
		}
	}
}

export function EducationType() {
	return {
		/**
		 * 增加学历分类
		 * @param {*} params 
		 * @returns 
		 */
		addEducationType: (params:any) => {
			return post({
				url: '/hr/education-type/addEducationType',
				data: params,
			});
		},
		/**
		 * 修改学历分类
		 * @param {*} params 
		 * @returns 
		 */
		updateEducationType: (params:any) => {
			return post({
				url: '/hr/education-type/updateEducationType',
				data: params,
			});
		},
		/**
		 * 获取生效的学历分类
		 * @returns 
		 */
		getAllActiveEducationType: () => {
			return get({
				url: '/hr/education-type/getAllActiveEducationType',
			});
		},
		/**
		 * 获取所有学历分类
		 * @param {*} params 
		 * @returns 
		 */
		getEducationTypeList: (params:any) => {
			return post({
				url: '/hr/education-type/getEducationTypeList',
				data: params,
			});
		}
	}
}

export function EmployeeNature() {
	return {
		/**
		 * 增加员工性质
		 * @param {*} params 
		 * @returns 
		 */
		addEmployeeNature: (params:any) => {
			return post({
				url: '/hr/employee-nature/addEmployeeNature',
		
				data: params,
			});
		},
		/**
		 * 修改员工性质
		 * @param {*} params 
		 * @returns 
		 */
		updateEmployeeNature: (params:any) => {
			return post({
				url: '/hr/employee-nature/updateEmployeeNature',

				data: params,
			});
		},
		/**
		 * 获取生效的员工性质
		 * @returns 
		 */
		getAllActiveEmployeeNature: () => {
			return get({
				url: '/hr/employee-nature/getAllActiveEmployeeNature',
			});
		},
		/**
		 * 获取所有员工性质
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeNatureList: (params:any) => {
			return post({
				url: '/hr/employee-nature/getEmployeeNatureList',
				data: params,
			});
		}
	}
}

export function EmployeeSource() {
	return {
		/**
		 * 增加员工来源
		 * @param {*} params 
		 * @returns 
		 */
		addEmployeeSource: (params:any) => {
			return post({
				url: '/hr/employee-source/addEmployeeSource',
				data: params,
			});
		},
		/**
		 * 修改员工来源
		 * @param {*} params 
		 * @returns 
		 */
		updateEmployeeSource: (params:any) => {
			return post({
				url: '/hr/employee-source/updateEmployeeSource',
				data: params,
			});
		},
		/**
		 * 获取生效的员工来源
		 * @returns 
		 */
		getAllActiveEmployeeSource: () => {
			return get({
				url: '/hr/employee-source/getAllActiveEmployeeSource',
			});
		},
		/**
		 * 获取所有员工来源
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeSourceList: (params:any) => {
			return post({
				url: '/hr/employee-source/getEmployeeSourceList',

				data: params,
			});
		}
	}
}

export function ExpenseType() {
	return {
		/**
		 * 增加费用类型
		 * @param {*} params 
		 * @returns 
		 */
		addExpenseType: (params:any) => {
			return post({
				url: '/hr/expense-type/addExpenseType',
				data: params,
			});
		},
		/**
		 * 修改费用类型
		 * @param {*} params 
		 * @returns 
		 */
		updateExpenseType: (params:any) => {
			return post({
				url: '/hr/expense-type/updateExpenseType',
				data: params,
			});
		},
		/**
		 * 获取生效的费用类型
		 * @returns 
		 */
		getAllActiveExpenseType: () => {
			return get({
				url: '/hr/expense-type/getAllActiveExpenseType',
			});
		},
		/**
		 * 获取所有费用类型
		 * @param {*} params 
		 * @returns 
		 */
		getExpenseTypeList: (params:any) => {
			return post({
				url: '/hr/expense-type/getExpenseTypeList',
				data: params,
			});
		}
	}
}

export function GradeOfPositions() {
	return {
		/**
		 * 增加职等
		 * @param {*} params 
		 * @returns 
		 */
		addGradeOfPositions: (params:any) => {
			return post({
				url: '/hr/grade-of-positions/addGradeOfPositions',
				data: params,
			});
		},
		/**
		 * 修改职等
		 * @param {*} params 
		 * @returns 
		 */
		updateGradeOfPositions: (params:any) => {
			return post({
				url: '/hr/grade-of-positions/updateGradeOfPositions',
				data: params,
			});
		},
		/**
		 * 获取生效的职等
		 * @returns 
		 */
		getAllActiveGradeOfPositions: () => {
			return get({
				url: '/hr/grade-of-positions/getAllActiveGradeOfPositions',
			});
		},
		/**
		 * 获取所有职等
		 * @param {*} params 
		 * @returns 
		 */
		getGradeOfPositionsList: (params:any) => {
			return post({
				url: '/hr/grade-of-positions/getGradeOfPositionsList',

				data: params,
			});
		}
	}
}

export function HouseholdType() {
	return {
		/**
		 * 增加户口性质
		 * @param {*} params 
		 * @returns 
		 */
		addHouseholdType: (params:any) => {
			return post({
				url: '/hr/household-type/addHouseholdType',
				method: 'POST',

			});
		},
		/**
		 * 修改户口性质
		 * @param {*} params 
		 * @returns 
		 */
		updateHouseholdType: (params:any) => {
			return post({
				url: '/hr/household-type/updateHouseholdType',
				data: params,
			});
		},
		/**
		 * 获取生效的户口性质
		 * @returns 
		 */
		getAllActiveHouseholdType: () => {
			return get({
				url: '/hr/household-type/getAllActiveHouseholdType',
			});
		},
		/**
		 * 获取所有户口性质
		 * @param {*} params 
		 * @returns 
		 */
		getHouseholdTypeList: (params:any) => {
			return post({
				url: '/hr/household-type/getHouseholdTypeList',
				data: params,
			});
		}
	}
}

export function MaritalStatus() {
	return {
		/**
		 * 增加婚姻状况
		 * @param {*} params 
		 * @returns 
		 */
		addMaritalStatus: (params:any) => {
			return post({
				url: '/hr/marital-status/addMaritalStatus',
				data: params,
			});
		},
		/**
		 * 修改婚姻状况
		 * @param {*} params 
		 * @returns 
		 */
		updateMaritalStatus: (params:any) => {
			return post({
				url: '/hr/marital-status/updateMaritalStatus',
				data: params,
			});
		},
		/**
		 * 获取生效的婚姻状况
		 * @returns 
		 */
		getAllActiveMaritalStatus: () => {
			return get({
				url: '/hr/marital-status/getAllActiveMaritalStatus',
			});
		},
		/**
		 * 获取所有婚姻状况
		 * @param {*} params 
		 * @returns 
		 */
		getMaritalStatusList: (params:any) => {
			return post({
				url: '/hr/marital-status/getMaritalStatusList',
				data: params,
			});
		}
	}
}

export function Nation() {
	return {
		/**
		 * 增加民族
		 * @param {*} params 
		 * @returns 
		 */
		addNation: (params:any) => {
			return post({
				url: '/hr/nation/addNation',

				data: params,
			});
		},
		/**
		 * 修改民族
		 * @param {*} params 
		 * @returns 
		 */
		updateNation: (params:any) => {
			return post({
				url: '/hr/nation/updateNation',

				data: params,
			});
		},
		/**
		 * 获取生效的民族
		 * @returns 
		 */
		getAllActiveNation: () => {
			return get({
				url: '/hr/nation/getAllActiveNation',
			});
		},
		/**
		 * 获取所有民族
		 * @param {*} params 
		 * @returns 
		 */
		getNationList: (params:any) => {
			return post({
				url: '/hr/nation/getNationList',
				data: params,
			});
		}
	}
}

export function Nationality() {
	return {
		/**
		 * 增加国籍
		 * @param {*} params 
		 * @returns 
		 */
		addNationality: (params:any) => {
			return post({
				url: '/hr/nationality/addNationality',
				data: params,
			});
		},
		/**
		 * 修改国籍
		 * @param {*} params 
		 * @returns 
		 */
		updateNationality: (params:any) => {
			return post({
				url: '/hr/nationality/updateNationality',
				data: params,
			});
		},
		/**
		 * 获取生效的国籍
		 * @returns 
		 */
		getAllActiveNationality: () => {
			return get({
				url: '/hr/nationality/getAllActiveNationality',
			});
		},
		/**
		 * 获取所有国籍
		 * @param {*} params 
		 * @returns 
		 */
		getNationalityList: (params:any) => {
			return post({
				url: '/hr/nationality/getNationalityList',

				data:params
			});
		}
	}
}

export function NativePlace() {
	return {
		/**
		 * 增加籍贯
		 * @param {*} params 
		 * @returns 
		 */
		addNativePlace: (params:any) => {
			return post({
				url: '/hr/native-place/addNativePlace',
				data: params,
			});
		},
		/**
		 * 修改籍贯
		 * @param {*} params 
		 * @returns 
		 */
		updateNativePlace: (params:any) => {
			return post({
				url: '/hr/native-place/updateNativePlace',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的籍贯
		 * @returns 
		 */
		getAllActiveNativePlace: () => {
			return get({
				url: '/hr/native-place/getAllActiveNativePlace',
			});
		},
		/**
		 * 获取所有籍贯
		 * @param {*} params 
		 * @returns 
		 */
		getNativePlaceList: (params:any) => {
			return post({
				url: '/hr/native-place/getNativePlaceList',

				data: params,
			});
		}
	}
}

export function PoliticalStatus() {
	return {
		/**
		 * 增加政治面貌
		 * @param {*} params 
		 * @returns 
		 */
		addPoliticalStatus: (params:any) => {
			return post({
				url: '/hr/political-status/addPoliticalStatus',
				data: params,
			});
		},
		/**
		 * 修改政治面貌
		 * @param {*} params 
		 * @returns 
		 */
		updatePoliticalStatus: (params:any) => {
			return post({
				url: '/hr/political-status/updatePoliticalStatus',

				data: params,
			});
		},
		/**
		 * 获取生效的政治面貌
		 * @returns 
		 */
		getAllActivePoliticalStatus: () => {
			return get({
				url: '/hr/political-status/getAllActivePoliticalStatus',
	
			});
		},
		/**
		 * 获取所有政治面貌
		 * @param {*} params 
		 * @returns 
		 */
		getPoliticalStatusList: (params:any) => {
			return post({
				url: '/hr/political-status/getPoliticalStatusList',
	
				data: params,
			});
		},
		getPoliticalStatusById: (params:any) => {
			return post({
				url: '/hr/political-status/getPoliticalStatusById',
	
				data: params,
			});
		},
	}
}

export function Position() {
	return {
		/**
		 * 增加职务
		 * @param {*} params 
		 * @returns 
		 */
		addPosition: (params:any) => {
			return post({
				url: '/hr/position/addPosition',
				data: params,
			});
		},
		/**
		 * 修改职务
		 * @param {*} params 
		 * @returns 
		 */
		updatePosition: (params:any) => {
			return post({
				url: '/hr/position/updatePosition',
				data: params,
			});
		},
		/**
		 * 获取生效的职务
		 * @returns 
		 */
		getAllActivePosition: () => {
			return get({
				url: '/hr/position/getAllActivePosition',

			});
		},
		/**
		 * 获取所有职务
		 * @param {*} params 
		 * @returns 
		 */
		getPositionList: (params:any) => {
			return post({
				url: '/hr/position/getPositionList',

				data: params,
			});
		}
	}
}

export function PositionType() {
	return {
		/**
		 * 增加职务分类
		 * @param {*} params 
		 * @returns 
		 */
		addPositionType: (params:any) => {
			return post({
				url: '/hr/position-type/addPositionType',
				data: params,
			});
		},
		/**
		 * 修改职务分类
		 * @param {*} params 
		 * @returns 
		 */
		updatePositionType: (params:any) => {
			return post({
				url: '/hr/position-type/updatePositionType',
		
				data: params,
			});
		},
		/**
		 * 获取生效的职务分类
		 * @returns 
		 */
		getAllActivePositionType: () => {
			return get({
				url: '/hr/position-type/getAllActivePositionType',
		
			});
		},
		/**
		 * 获取所有职务分类
		 * @param {*} params 
		 * @returns 
		 */
		getPositionTypeList: (params:any) => {
			return post({
				url: '/hr/position-type/getPositionTypeList',

				data: params,
			});
		}
	}
}

export function Post() {
	return {
		/**
		 * 增加岗位
		 * @param {*} params 
		 * @returns 
		 */
		addPost: (params:any) => {
			return post({
				url: '/hr/post/addPost',

				data: params,
			});
		},
		/**
		 * 修改岗位
		 * @param {*} params 
		 * @returns 
		 */
		updatePost: (params:any) => {
			return post({
				url: '/hr/post/updatePost',
				data: params,
			});
		},
		/**
		 * 获取生效的岗位
		 * @returns 
		 */
		getAllActivePost: (params:any) => {
			return post({
				url: '/hr/post/getAllActivePost',
				data: params
			});
		},
		/**
		 * 获取所有岗位
		 * @param {*} params 
		 * @returns 
		 */
		getPostList: (params:any) => {
			return post({
				url: '/hr/post/getPostList',
				data: params,
			});
		}
	}
}

export function PostType() {
	return {
		/**
		 * 增加岗位分类
		 * @param {*} params 
		 * @returns 
		 */
		addPostType: (params:any) => {
			return post({
				url: '/hr/post-type/addPostType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改岗位分类
		 * @param {*} params 
		 * @returns 
		 */
		updatePostType: (params:any) => {
			return post({
				url: '/hr/post-type/updatePostType',
	
				data: params,
			});
		},
		/**
		 * 获取生效的岗位分类
		 * @returns 
		 */
		getAllActivePostType: () => {
			return get({
				url: '/hr/post-type/getAllActivePostType',
	
			});
		},
		/**
		 * 获取所有岗位分类
		 * @param {*} params 
		 * @returns 
		 */
		getPostTypeList: (params:any) => {
			return post({
				url: '/hr/post-type/getPostTypeList',

				data: params,
			});
		}
	}
}

export function Rank() {
	return {
		/**
		 * 增加职级
		 * @param {*} params 
		 * @returns 
		 */
		addRank: (params:any) => {
			return post({
				url: '/hr/rank/addRank',
				data: params,
			});
		},
		/**
		 * 修改职级
		 * @param {*} params 
		 * @returns 
		 */
		updateRank: (params:any) => {
			return post({
				url: '/hr/rank/updateRank',
	
				data: params,
			});
		},
		/**
		 * 获取生效的职级
		 * @returns 
		 */
		getAllActiveRank: () => {
			return get({
				url: '/hr/rank/getAllActiveRank',

			});
		},
		/**
		 * 获取所有职级
		 * @param {*} params 
		 * @returns 
		 */
		getRankList: (params:any) => {
			return post({
				url: '/hr/rank/getRankList',
	
				data: params,
			});
		}
	}
}

export function ResignationCategory() {
	return {
		/**
		 * 增加离职类别
		 * @param {*} params 
		 * @returns 
		 */
		addResignationCategory: (params:any) => {
			return post({
				url: '/hr/resignation-category/addResignationCategory',
	
				data: params,
			});
		},
		/**
		 * 修改离职类别
		 * @param {*} params 
		 * @returns 
		 */
		updateResignationCategory: (params:any) => {
			return post({
				url: '/hr/resignation-category/updateResignationCategory',
		
				data: params,
			});
		},
		/**
		 * 获取生效的离职类别
		 * @returns 
		 */
		getAllActiveResignationCategory: () => {
			return get({
				url: '/hr/resignation-category/getAllActiveResignationCategory',
	
			});
		},
		/**
		 * 获取所有离职类别
		 * @param {*} params 
		 * @returns 
		 */
		getResignationCategoryList: (params:any) => {
			return post({
				url: '/hr/resignation-category/getResignationCategoryList',
		
				data: params,
			});
		}
	}
}

export function RewardAndPunishmentItems() {
	return {
		/**
		 * 增加奖惩项目
		 * @param {*} params 
		 * @returns 
		 */
		addRewardAndPunishmentItems: (params:any) => {
			return post({
				url: '/hr/reward-and-punishment-items/addRewardAndPunishmentItems',
			
				data: params,
			});
		},
		/**
		 * 修改奖惩项目
		 * @param {*} params 
		 * @returns 
		 */
		updateRewardAndPunishmentItems: (params:any) => {
			return post({
				url: '/hr/reward-and-punishment-items/updateRewardAndPunishmentItems',
				method: 'POST',
	
			});
		},
		/**
		 * 获取生效的奖惩项目
		 * @returns 
		 */
		getAllActiveRewardAndPunishmentItems: () => {
			return get({
				url: '/hr/reward-and-punishment-items/getAllActiveRewardAndPunishmentItems',

			});
		},
		/**
		 * 获取所有奖惩项目
		 * @param {*} params 
		 * @returns 
		 */
		getRewardAndPunishmentItemsList: (params:any) => {
			return post({
				url: '/hr/reward-and-punishment-items/getRewardAndPunishmentItemsList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function RewardType() {
	return {
		/**
		 * 增加奖惩类型
		 * @param {*} params 
		 * @returns 
		 */
		addRewardType: (params:any) => {
			return post({
				url: '/hr/reward-type/addRewardType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改奖惩类型
		 * @param {*} params 
		 * @returns 
		 */
		updateRewardType: (params:any) => {
			return post({
				url: '/hr/reward-type/updateRewardType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的奖惩类型
		 * @returns 
		 */
		getAllActiveRewardType: () => {
			return get({
				url: '/hr/reward-type/getAllActiveRewardType',
				method: 'get',
			});
		},
		/**
		 * 获取所有奖惩类型
		 * @param {*} params 
		 * @returns 
		 */
		getRewardTypeList: (params:any) => {
			return post({
				url: '/hr/reward-type/getRewardTypeList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function DepartmentType() {
	return {
		/**
		 * 增加部门分类
		 * @param {*} params 
		 * @returns 
		 */
		addDepartmentType: (params:any) => {
			return post({
				url: '/hr/department-type/addDepartmentType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改部门分类
		 * @param {*} params 
		 * @returns 
		 */
		updateDepartmentType: (params:any) => {
			return post({
				url: '/hr/department-type/updateDepartmentType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的部门分类
		 * @returns 
		 */
		getAllActiveDepartmentType: () => {
			return get({
				url: '/hr/department-type/getAllActiveDepartmentType',
				method: 'get',
			});
		},
		/**
		 * 获取所有部门分类
		 * @param {*} params 
		 * @returns 
		 */
		getDepartmentTypeList: (params:any) => {
			return post({
				url: '/hr/department-type/getDepartmentTypeList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function OrganizationType() {
	return {
		/**
		 * 增加组织分类
		 * @param {*} params 
		 * @returns 
		 */
		addOrganizationType: (params:any) => {
			return post({
				url: '/hr/organization-type/addOrganizationType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改组织分类
		 * @param {*} params 
		 * @returns 
		 */
		updateOrganizationType: (params:any) => {
			return params({
				url: '/hr/organization-type/updateOrganizationType',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的组织分类
		 * @returns 
		 */
		getAllActiveOrganizationType: () => {
			return get({
				url: '/hr/organization-type/getAllActiveOrganizationType',
				method: 'get',
			});
		},
		/**
		 * 获取所有组织分类
		 * @param {*} params 
		 * @returns 
		 */
		getOrganizationTypeList: (params:any) => {
			return post({
				url: '/hr/organization-type/getOrganizationTypeList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function Company() {
	return {
		/**
		 * 增加公司
		 * @param {*} params 
		 * @returns 
		 */
		addCompany: (params:any) => {
			return post({
				url: '/hr/company/addCompany',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改公司
		 * @param {*} params 
		 * @returns 
		 */
		updateCompany: (params:any) => {
			return post({
				url: '/hr/company/updateCompany',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的公司
		 * @returns 
		 */
		getAllActiveCompany: () => {
			return get({
				url: '/hr/company/getAllActiveCompany',
				method: 'get',
			});
		},
		/**
		 * 获取所有公司
		 * @param {*} params 
		 * @returns 
		 */
		getCompanyList: (params:any) => {
			return post({
				url: '/hr/company/getCompanyList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function Organization() {
	return {
		/**
		 * 增加组织
		 * @param {*} params 
		 * @returns 
		 */
		addOrganization: (params:any) => {
			return post({
				url: '/hr/organization/addOrganization',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改组织
		 * @param {*} params 
		 * @returns 
		 */
		updateOrganization: (params:any) => {
			return post({
				url: '/hr/organization/updateOrganization',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的组织
		 * @returns 
		 */
		getAllActiveOrganization: () => {
			return get({
				url: '/hr/organization/getAllActiveOrganization',
				method: 'get',
			});
		},
		/**
		 * 获取所有组织
		 * @param {*} params 
		 * @returns 
		 */
		getOrganizationList: (params:any) => {
			return post({
				url: '/hr/organization/getOrganizationList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function OrganizationEmployee() {
	return {
		/**
		 * 增加组织员工
		 * @param {*} params 
		 * @returns 
		 */
		addOrganizationEmployee: (params:any) => {
			return post({
				url: '/hr/organization-employee/addOrganizationEmployee',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改组织员工
		 * @param {*} params 
		 * @returns 
		 */
		updateOrganizationEmployee: (params:any) => {
			return post({
				url: '/hr/organization-employee/updateOrganizationEmployee',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的组织员工
		 * @returns 
		 */
		getAllActiveOrganizationEmployee: () => {
			return get({
				url: '/hr/organization-employee/getAllActiveOrganizationEmployee',
				method: 'get',
			});
		},
		/**
		 * 获取所有组织员工
		 * @param {*} params 
		 * @returns 
		 */
		getOrganizationEmployeeList: (params:any) => {
			return post({
				url: '/hr/organization-employee/getOrganizationEmployeeList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function Department() {
	return {
		/**
		 * 增加部门
		 * @param {*} params 
		 * @returns 
		 */
		addDepartment: (params:any) => {
			return post({
				url: '/hr/department/addDepartment',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改部门
		 * @param {*} params 
		 * @returns 
		 */
		updateDepartment: (params:any) => {
			return post({
				url: '/hr/department/updateDepartment',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 获取生效的部门
		 * @returns 
		 */
		getAllActiveDepartment: () => {
			return get({
				url: '/hr/department/getAllActiveDepartment',
				method: 'get',
			});
		},
		/**
		 * 获取所有部门
		 * @param {*} params 
		 * @returns 
		 */
		getDepartmentList: (params:any) => {
			return post({
				url: '/hr/department/getDepartmentList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function DepartmentAuthorizedStrength() {
	return {
		/**
		 * 增加部门编制
		 * @param {*} params 
		 * @returns 
		 */
		addDepartmentAuthorizedStrength: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/addDepartmentAuthorizedStrength',
				method: 'POST',
				data: params,
			});
		},
		/**
		 * 修改部门编制
		 * @param {*} params 
		 * @returns 
		 */
		updateDepartmentAuthorizedStrength: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/updateDepartmentAuthorizedStrength',
				method: 'POST',
				data: params,
			});
		},		
		/**
		 * 获取所有部门编制
		 * @param {*} params 
		 * @returns 
		 */
		getDepartmentAuthorizedStrengthList: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/getDepartmentAuthorizedStrengthList',
				method: 'POST',
				data: params,
			});
		}
	}
}

export function ContractType() {
	return {
		/**
		 * 增加合同分类
		 * @param {*} params 
		 * @returns 
		 */
		addContractType: (params) => {
			return post({
				url: '/hr/contract-type/addContractType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改合同分类
		 * @param {*} params 
		 * @returns 
		 */
		updateContractType: (params) => {
			return post({
				url: '/hr/contract-type/updateContractType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的合同分类
		 * @returns 
		 */
		getAllActiveContractType: () => {
			return get({
				url: '/hr/contract-type/getAllActiveContractType',
				method: 'get',
			});
		},
		/**
		 * 获取所有合同分类
		 * @param {*} params 
		 * @returns 
		 */
		getContractTypeList: (params) => {
			return post({
				url: '/hr/contract-type/getContractTypeList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function ProtocolType() {
	return {
		/**
		 * 增加协议分类
		 * @param {*} params 
		 * @returns 
		 */
		addProtocolType: (params) => {
			return post({
				url: '/hr/protocol-type/addProtocolType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改协议分类
		 * @param {*} params 
		 * @returns 
		 */
		updateProtocolType: (params) => {
			return post({
				url: '/hr/protocol-type/updateProtocolType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取生效的协议分类
		 * @returns 
		 */
		getAllActiveProtocolType: () => {
			return get({
				url: '/hr/protocol-type/getAllActiveProtocolType',
				method: 'get',
			});
		},
		/**
		 * 获取所有协议分类
		 * @param {*} params 
		 * @returns 
		 */
		getProtocolTypeList: (params) => {
			return post({
				url: '/hr/protocol-type/getProtocolTypeList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function AdministrationLayout() {
	return {
		/**
		 * 增加行政规划
		 * @param {*} params 
		 * @returns 
		 */
		addAdministrationLayout: (params) => {
			return post({
				url: '/hr/administration-layout/addAdministrationLayout',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改行政规划
		 * @param {*} params 
		 * @returns 
		 */
		updateAdministrationLayout: (params) => {
			return post({
				url: '/hr/administration-layout/updateAdministrationLayout',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取所有行政规划
		 * @param {*} params 
		 * @returns 
		 */
		getAdministrationLayoutList: (params) => {
			return post({
				url: '/hr/administration-layout/getAdministrationLayoutList',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取省份列表
		 * @param {*} params 
		 * @returns 
		 */
		getProvince: (params) => {
			return post({
				url: '/hr/administration-layout/getProvince',
				method: 'post',
				data: params,
			});
		}
	}
}

export function ArrangeTheSchedualType() {
	return {
		/**
		 * 增加排班类型
		 * @param {*} params 
		 * @returns 
		 */
		addArrangeTheSchedualType: (params) => {
			return post({
				url: '/hr/arrange-the-schedual-type/addArrangeTheSchedualType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改排班类型
		 * @param {*} params 
		 * @returns 
		 */
		updateArrangeTheSchedualType: (params) => {
			return post({
				url: '/hr/arrange-the-schedual-type/updateArrangeTheSchedualType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取排班类型列表
		 * @param {*} params 
		 * @returns 
		 */
		getArrangeTheSchedualTypeList: (params) => {
			return post({
				url: '/hr/arrange-the-schedual-type/getArrangeTheSchedualTypeList',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取排班类型列表
		 * @param {*} params 
		 * @returns 
		 */
		getAllActiveArrangeTheSchedualType: (params) => {
			return post({
				url: '/hr/arrange-the-schedual-type/getAllActiveArrangeTheSchedualType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 按Id获取排班类型
		 * @param {*} params 
		 * @returns 
		 */
		getArrangeTheSchedualTypeById: (params) => {
			return post({
				url: '/hr/arrange-the-schedual-type/getArrangeTheSchedualTypeById',
				method: 'post',
				data: params,
			});
		}
	}
}

export function AskForLeaveType() {
	return {
		/**
		 * 增加请假类型
		 * @param {*} params 
		 * @returns 
		 */
		addAskForLeaveType: (params) => {
			return post({
				url: '/hr/ask-for-leave-type/addAskForLeaveType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改请假类型
		 * @param {*} params 
		 * @returns 
		 */
		updateAskForLeaveType: (params) => {
			return post({
				url: '/hr/ask-for-leave-type/updateAskForLeaveType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取请假类型列表
		 * @param {*} params 
		 * @returns 
		 */
		getAskForLeaveTypeList: (params) => {
			return post({
				url: '/hr/ask-for-leave-type/getAskForLeaveTypeList',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取请假类型列表
		 * @param {*} params 
		 * @returns 
		 */
		getAllActiveAskForLeaveType: (params) => {
			return get({
				url: '/hr/ask-for-leave-type/getAllActiveAskForLeaveType',
				method: 'get',
				data: params,
			});
		}
	}
}

export function TravelMode() {
	return {
		/**
		 * 增加出行方式
		 * @param {*} params 
		 * @returns 
		 */
		addTravelMode: (params) => {
			return post({
				url: '/hr/travel-mode/addTravelMode',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改出行方式
		 * @param {*} params 
		 * @returns 
		 */
		updateTravelMode: (params) => {
			return post({
				url: '/hr/travel-mode/updateTravelMode',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取出行方式列表
		 * @param {*} params 
		 * @returns 
		 */
		getTravelModeList: (params) => {
			return post({
				url: '/hr/travel-mode/getTravelModeList',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取出行方式列表
		 * @param {*} params 
		 * @returns 
		 */
		getAllActiveTravelMode: (params) => {
			return get({
				url: '/hr/travel-mode/getAllActiveTravelMode',
				method: 'get',
				data: params,
			});
		}
	}
}

export function WorkOvertimeType() {
	return {
		/**
		 * 增加加班类型
		 * @param {*} params 
		 * @returns 
		 */
		addWorkOvertimeType: (params) => {
			return post({
				url: '/hr/work-overtime-type/addWorkOvertimeType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改加班类型
		 * @param {*} params 
		 * @returns 
		 */
		updateWorkOvertimeType: (params) => {
			return post({
				url: '/hr/work-overtime-type/updateWorkOvertimeType',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取加班类型列表
		 * @param {*} params 
		 * @returns 
		 */
		getWorkOvertimeTypeList: (params) => {
			return post({
				url: '/hr/work-overtime-type/getWorkOvertimeTypeList',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取加班类型列表
		 * @param {*} params 
		 * @returns 
		 */
		getAllActiveWorkOvertimeType: (params) => {
			return get({
				url: '/hr/work-overtime-type/getAllActiveWorkOvertimeType',
				method: 'get',
				data: params,
			});
		}
	}
}

export function IdcardWebSocketAddress() {
	return {
		/**
		 * 增加身份证读取服务配置
		 * @param {*} params 
		 * @returns 
		 */
		addIdcardWebSocketAddress: (params) => {
			return post({
				url: '/hr/idcard-web-socket-address/addIdcardWebSocketAddress',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改身份证读取服务配置
		 * @param {*} params 
		 * @returns 
		 */
		updateIdcardWebSocketAddress: (params) => {
			return post({
				url: '/hr/idcard-web-socket-address/updateIdcardWebSocketAddress',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 按公司获取生效的身份证读取服务配置
		 * @returns 
		 */
		getIdcardWebSocketAddressByCompanyId: (params) => {
			return post({
				url: '/hr/idcard-web-socket-address/getIdcardWebSocketAddressByCompanyId',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取身份证读取服务配置列表
		 * @param {*} params 
		 * @returns 
		 */
		getIdcardWebSocketAddressList: (params) => {
			return post({
				url: '/hr/idcard-web-socket-address/getIdcardWebSocketAddressList',
				method: 'post',
				data: params,
			});
		}
	}
}